package com.tools.modules.table.help;

import org.thymeleaf.templateresolver.ClassLoaderTemplateResolver;

/**
 * thymeleaf 工具
 * @Author : ShangJY
 * @create 2024/6/2 14:32
 */
public class TemplateUtil {

    public static ClassLoaderTemplateResolver setTemplate(){
        // 设置模板信息
        ClassLoaderTemplateResolver templateResolver = new ClassLoaderTemplateResolver();
        templateResolver.setPrefix("export_template/");
        templateResolver.setSuffix(".html");
        templateResolver.setTemplateMode("HTML5");
        templateResolver.setCharacterEncoding("UTF-8");
        return templateResolver;
    }
}
